package main

import (
	grpc2 "google.golang.org/grpc"
	"zk2/common/grpc"
	"zk2/common/models"
	"zk2/common/mysql"
	"zk2/common/redis"
	"zk2/rpc/internal"
)

func main() {
	mysql.InitMysql()
	mysql.Db.AutoMigrate(models.User{})
	redis.InitRedis()
	grpc.Grpc(func(server *grpc2.Server) {
		internal.Register(server)
	})
}
